package demo.dubbo;

import demo.dubbo.api.TimeApi;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Date;

@DubboService
public class TimeApiImpl implements TimeApi {

    public Date printTime() {
        Date date = new Date();
        System.out.println("服务端 现在是:"+date);
        return date;
    }
}